package generator.service;

import generator.domain.AppInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 李展鹏
* @description 针对表【app_info】的数据库操作Service
* @createDate 2024-05-17 10:27:58
*/
public interface AppInfoService extends IService<AppInfo> {
    /**
     * 分页
     * @param softwareName
     * @param status
     * @param categoryLevel1
     * @param categoryLevel2
     * @param categoryLevel3
     * @param flatformId
     * @param devId
     * @param from
     * @param pageSize
     * @return
     */
    public List<AppInfo> getAppInfoList(
            String softwareName, Integer status,
            Integer categoryLevel1, Integer categoryLevel2,
            Integer categoryLevel3,Integer flatformId,
            Integer devId, Integer from, Integer pageSize);

    /**
     * 总记录数
     * @param softwareName
     * @param status
     * @param categoryLevel1
     * @param categoryLevel2
     * @param categoryLevel3
     * @param flatformId
     * @param devId
     * @return
     */
    public int getAppInfoCount(
            String softwareName, Integer status,
            Integer categoryLevel1, Integer categoryLevel2,
            Integer categoryLevel3, Integer flatformId,
            Integer devId);

    public AppInfo getByIdAppInfo(Integer id);
}
